home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-23 | 7.7 KB | 297 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLRanSin.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- /*
- *
- * File: SLRanSin.idl
- *
- * Contains: Interface for abstract random access sink class
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- */
-
-
- #ifndef SOM_FW_ORandomAccessSink_xih
- #define SOM_FW_ORandomAccessSink_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_ORandomAccessSink_xh
- #include <SLRanSin.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_ORandomAccessSink_MaxNoMethods 4
-
- /*
- * -- Instance Data
- */
- typedef void FW_ORandomAccessSinkData;
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_ORandomAccessSinkMethodDebug
- #define FW_ORandomAccessSinkMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _GetReadableBytes somSelf->GetReadableBytes
- #define _Read somSelf->Read
- #define _GetWritableBytes somSelf->GetWritableBytes
- #define _Write somSelf->Write
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _GetLength somSelf->GetLength
- #define _SetLength somSelf->SetLength
- #define _GetPosition somSelf->GetPosition
- #define _SetPosition somSelf->SetPosition
- #define _GetReadableBytes somSelf->GetReadableBytes
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: GetLength */
- SOM_Scope long SOMLINK FW_ORandomAccessSink__GetLength(FW_ORandomAccessSink *somSelf, Environment *ev);
-
- /* New Method: SetLength */
- SOM_Scope void SOMLINK FW_ORandomAccessSink__SetLength(FW_ORandomAccessSink *somSelf, Environment *ev,
- long length);
-
- /* New Method: GetPosition */
- SOM_Scope long SOMLINK FW_ORandomAccessSink__GetPosition(FW_ORandomAccessSink *somSelf, Environment *ev);
-
- /* New Method: SetPosition */
- SOM_Scope void SOMLINK FW_ORandomAccessSink__SetPosition(FW_ORandomAccessSink *somSelf, Environment *ev,
- long position);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: GetReadableBytes */
- SOM_Scope long SOMLINK FW_ORandomAccessSink__GetReadableBytes(FW_ORandomAccessSink *somSelf, Environment *ev);
- SOMEXTERN typedef long (* SOMLINK somTD_xih_FW_ORandomAccessSink_GetReadableBytes)(FW_ORandomAccessSink *somSelf, Environment *ev);
- inline long SOMLINK FW_ORandomAccessSink_parent_FW_OSink_GetReadableBytes(FW_ORandomAccessSink *somSelf, Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- long __somRetVal = ((somTD_xih_FW_ORandomAccessSink_GetReadableBytes)
- somParentNumResolve((somClassDataStructure*)&FW_ORandomAccessSinkClassData, 1, FW_OSinkClassData.GetReadableBytes))
- (somSelf,ev);
- SOMCHKEXCEPT;
- return __somRetVal;
- #else
- return ((somTD_xih_FW_ORandomAccessSink_GetReadableBytes)
- somParentNumResolve((somClassDataStructure*)&FW_ORandomAccessSinkClassData, 1, FW_OSinkClassData.GetReadableBytes))
- (somSelf,ev);
- #endif
- }
- #define FW_ORandomAccessSink_parents_GetReadableBytes(arg0,arg1) \
- (void) FW_ORandomAccessSink_parent_FW_OSink_GetReadableBytes(arg0,arg1)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_ORandomAccessSink_Class_Source) || defined(SOM_Module_slransin_Source))
-
- /*
- * -- The FW_ORandomAccessSink ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_ORandomAccessSinkClassData
- #endif
-
-
- /*
- * -- The FW_ORandomAccessSink Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_ORandomAccessSinkClassAncestors [] = {
- (somClassDataStructure*) & FW_OSinkClassData, /* parent */
- };
-
-
- /*
- * -- The FW_ORandomAccessSink Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_ORandomAccessSinkOverrideProcs [] = {
- (somMethodPtr) FW_ORandomAccessSink__GetReadableBytes, /* override class FW_OSink */
- };
-
-
- static void FW_ORandomAccessSinkDLLD ( void ) { }
-
-
- /*
- * -- The FW_ORandomAccessSink Static Class Info Master Table
- */
- static somStaticClassInfo FW_ORandomAccessSinkSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_ORandomAccessSinkClassData, /* main token table */
- FW_ORandomAccessSinkOverrideProcs, /* override proc implemenations table */
- FW_ORandomAccessSinkClassAncestors, /* ancestor table */
- FW_ORandomAccessSinkDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_ORandomAccessSink Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x00" /* type code alignment */
- "\x00\x04" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x01" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_ORandomAccessSink", /* the class name */
- 0, /* no class instance data */
-
- /*
- * -- The FW_ORandomAccessSink Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_ORandomAccessSink Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x00",
-
-
- /*
- * -- The FW_ORandomAccessSink Method Signature Info
- */
- (somSignatureInfo *)
- "\x02\x05" /* GetLength */
- "\x03\x07" /* SetLength */
- "\x02\x05" /* GetPosition */
- "\x03\x07" /* SetPosition */
- ,
-
-
- /*
- * -- The FW_ORandomAccessSink Class Method Names
- */
- "GetLength\0"
- "SetLength\0"
- "GetPosition\0"
- "SetPosition\0"
- ,
-
-
- /*
- * -- The FW_ORandomAccessSink Override Slots Table
- */
- (somOverrideData *)
- "\x00\x00\x00\x01" /* parent FW_OSink has 1 overrides */
- "\x00\x02" /* GetReadableBytes */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_ORandomAccessSink ClassData Structure
- */
- struct FW_ORandomAccessSinkClassDataStructure SOMDLINK FW_ORandomAccessSinkClassData = {
- 0, /* zero */
- & FW_ORandomAccessSinkSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) FW_ORandomAccessSink__GetLength, /* GetLength:method */
- (somMToken) FW_ORandomAccessSink__SetLength, /* SetLength:method */
- (somMToken) FW_ORandomAccessSink__GetPosition, /* GetPosition:method */
- (somMToken) FW_ORandomAccessSink__SetPosition, /* SetPosition:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_ORandomAccessSink_xih */
-